﻿using Himp.ShareData;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;

namespace Himp.ShareData
{
    /// <summary>
    /// 患者卡信息
    /// </summary>
    public class PatnCardInfo : CreationAuditedEntity<Guid>
    {
        /// <summary>
        /// 
        /// </summary>
        public Guid PatnMasterIdxId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public PatnMasterIdx PatnMasterIdx { get; set; }

        /// <summary>
        /// 卡类别代码
        /// 01 门诊就诊卡
        /// </summary>
        public string CardTypeCode { get; set; }

        /// <summary>
        /// 卡类别名称
        /// 01 门诊就诊卡
        /// </summary>
        public string CardTypeName { get; set; }

        /// <summary>
        /// 卡ID
        /// </summary>
        public string CardId { get; set; }

        /// <summary>
        /// 卡号
        /// </summary>
        public string CardNo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Stas { get; set; }

        public PatnCardInfo()
        { 
            
        }

        public PatnCardInfo(Guid patnMasterIdxId, string otpNo)
        {
            PatnMasterIdxId = patnMasterIdxId;
            CardTypeCode = "01";
            CardTypeName = "门诊就诊卡";
            CardId = otpNo;
            CardNo = otpNo;
            Stas = 0;
        }
    }
}
